﻿using OddUserManager.Data.IRepositories;
using OddUserManager.Model;
using OddUserManager.Service.IServices;
using System;
using System.Collections.Generic;
using System.Text;

namespace OddUserManager.Service.Services
{
    public class RealTimeTeamRemarkInfoService : IRealTimeTeamRemarkInfoService
    {

        private readonly IRealTimeTeamRemarkInfoRepository _repository;

        public RealTimeTeamRemarkInfoService(IRealTimeTeamRemarkInfoRepository repository) {
            _repository = repository;
        }

        public TeamRemarkInfo Get(int id)
        {
            return _repository.Get(id);
        }

        public List<TeamRemarkInfo> GetTeamRemarkByTeamId(int teamId)
        {
            return _repository.GetTeamRemarkByTeamId(teamId);
        }

        public TeamRemarkInfo GetTeamRemarkByTeamIdAndUserId(int teamId, int appUserId)
        {
            return _repository.GetTeamRemarkByTeamIdAndUserId(teamId,appUserId);
        }

        public bool InsertOrUpdate(TeamRemarkInfo entity)
        {
            return _repository.InsertOrUpdate(entity);
        }
    }
}
